<template>
    <div class="box">
        <h1>不带头像的信息</h1>
        <div class="tent">
            <el-table
      :data="info"
      style="width: 100%">
      <el-table-column
        prop="stu_id"
        label="学号"
        width="80">
      </el-table-column>
      <el-table-column
        prop="stu_name"
        label="姓名"
        width="80">
      </el-table-column>
      <el-table-column
        prop="stu_sex"
        label="性别">
      </el-table-column>
      <el-table-column
        prop="stu_jg"
        label="籍贯">
      </el-table-column>
      <el-table-column
        prop="stu_date"
        label="出生日期">
      </el-table-column>
      <el-table-column
        prop="stu_hobby"
        label="爱好">
      </el-table-column>
      <el-table-column
        prop="stu_gbf"
        label="男或女朋友">
      </el-table-column>
    </el-table>
        </div>
        
    </div>
</template>

<script>
import request from '../../api/request';
export default {
    data() {
        return {
            info: []
        }
    },
    async mounted() {
        let stult = await request({method:'get', url:'search_info_not', arg:{}, headerType:''});
        // stult.data.stu_date = stult.data.stu_date.slice(0,10)
        
        let listdata = stult.data.forEach(item => {
            // item.stu_date.slice(0,10)
            String(item.stu_date).slice(0,10);
        });
        console.log(listdata);
        // stult.data.stu_date = 
        this.info = stult.data;
    }
}
</script>

<style lang="scss" scoped>
.box {
    display: flex;
    flex-direction: column;
    align-items: center;

    .tent {
        table{
            border: 1px solid black;
            tr{
                td{
                    border: 1px solid black;
                }
            }
        }
    }
}
</style>